<template>
  <div>
    <el-link v-if="showVisible" type="primary" @click="$router.push({ path: '/market/coupon/couponCard/' + row.id + '/details' })">{{ row.receive_count }}/{{ row.count }}</el-link>
    <el-link v-else type="primary" :underline="false">{{ row.receive_count }}/{{ row.count }}</el-link>
  </div>
</template>

<script>
export default {
  props: {
    row: {
      type: Object,
      default: _ => {
        return {};
      }
    }
  },
  computed: {
    showVisible() {
      return this.hasPermission('market.coupon.couponcard.details');
    }
  }
};
</script>
